package com.example.myshop.Dao;

import com.example.myshop.domain.OrderDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class orderdaotesr {
    @Autowired
    private OrderDao orderDao;

    @Test
    public void test1(){
        orderDao.findVOByOid(1L);

    }

    @Test
    public void test2(){
        orderDao.findVOByUid(1L);
    }
    @Test
    public void test3(){
        orderDao.findBVOByUid(1L);
    }
    @Test
    public void test4(){
        orderDao.businessOrder(1L);
    }
    @Test
    public void test5(){
        orderDao.findVOByOUPid(1L,2185L);
    }
    @Test
    public void test6(){
        orderDao.paySearch(1L);
    }
    @Test
    public void test7(){
       orderDao.findVOByOUid(1L,123L);
    }
    @Test
    public void test8(){
        Integer a= orderDao.updatePStatus(18L,10000001L,0);
        System.out.println(a);
        //orderDao.updatePriority(1l,1l,1);
        //orderDao.updateSubPriority(1L,2L,3);
    }
}
